using System;
using com.db4o;

namespace DataLayer
{
	/// <summary>
	/// Summary description for db.
	/// </summary>
	public class DB
	{
		static string YapFileName = "C:/dataCVdb4o.dat";
		private static ObjectContainer _db;

		private DB()
		{			
		}

		public static ObjectContainer GetObjectConteiner()
		{
			if (_db == null)
			{
				_db = Db4o.OpenFile(YapFileName);		
			}
			return _db;
		}
	}
}
